# Contributor: alealexpro100 <alealexn@gmail.com>
# Maintainer: alealexpro100 <alealexn@gmail.com>
pkgname=wimlib
pkgver=1.13.5
pkgrel=0
pkgdesc="Create, extract, and modify Windows Imaging archives"
url="https://wimlib.net/"
arch="all"
license="GPL-3.0-or-later"
makedepends="fuse-dev libxml2-dev"
checkdepends="bash"
subpackages="$pkgname-dev $pkgname-doc"
source="https://wimlib.net/downloads/wimlib-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-libcrypto \
		--with-fuse \
		--without-ntfs-3g \
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
46c25f31cb33a648f05c5984a13fc193bf54215efd69b09e055575d979b6c319b612a1b4f0800d8168794cb8f02fdf079e4caea40e6a93304616d4b403bd827e  wimlib-1.13.5.tar.gz
"
